#ifndef __GE_COMMON_H__
#define __GE_COMMON_H__
#include "data_type.h"

#define ENGIINE_INTERVAL    60

#if 0
DataType vehicle_data[] =
{
	/*eng_data_rpm*/
	{
		ENG_DATA_RPM,
		/*name*/
		"eng_data_rpm",
		/*txrx id*/
		{0x7df, 0x7e8, 0x7df, 0x7e8},
		/*txrx order*/
		{TX, RX, TX, RX},
		/*offset*/
		{0, 0, 0, 3},
		/*size*/
		{0, 0, 0, 2},
		/*tx buffer*/
		{
			{0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
			{0},
			{0x02, 0x01, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00},
			{0}
		},
		/*interval*/
		12,
	},
	/*eng_data_vs*/
	{
		ENG_DATA_VS,
		/*name*/
		"eng_data_vs",
		/*txrx id*/
		{0x7df, 0x7e8, 0x7df, 0x7e8},
		/*txrx order*/
		{TX, RX, TX, RX},
		/*offset*/
		{0, 0, 0, 3},
		/*size*/
		{0, 0, 0, 1},
		/*tx buffer*/
		{
			{0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
			{0},
			{0x02, 0x01, 0x0d, 0x00, 0x00, 0x00, 0x00, 0x00},
			{0}
		},
		/*interval*/
		24,
	},
};

#else
DataType vehicle_data[] =
{
	/*eng_data_rpm*/
	{
		ENG_DATA_RPM,
		/*name*/
		"eng_data_rpm",
		/*txrx id*/
		{0x7e0, 0x7e8, 0x7e0, 0x5e8},
		/*txrx order*/
		{TX, RX, TX, RX},
		/*offset*/
		{0, 0, 0, 1},
		/*size*/
		{0, 0, 0, 2},
		/*tx buffer*/
		{
			{0x04, 0x2C, 0xFE, 0x00, 0x0C, 0x00, 0x00, 0x00},
			{0},
			{0x03, 0xAA, 0x03, 0xFE, 0x00, 0x00, 0x00, 0x00},
			{0}
		},
		/*interval*/
		ENGIINE_INTERVAL,
	},
	/*eng_data_vs*/
	{
		ENG_DATA_VS,
		/*name*/
		"eng_data_vs",
		/*txrx id*/
		{0x7e0, 0x7e8, 0x7e0, 0x5e8},
		/*txrx order*/
		{TX, RX, TX, RX},
		/*offset*/
		{0, 0, 0, 1},
		/*size*/
		{0, 0, 0, 1},
		/*tx buffer*/
		{
			{0x04, 0x2C, 0xFE, 0x00, 0x0d, 0x00, 0x00, 0x00},
			{0},
			{0x03, 0xAA, 0x03, 0xFE, 0x00, 0x00, 0x00, 0x00},
			{0}
		},
		/*interval*/
		ENGIINE_INTERVAL,
	},
	/*eng_data_etc*/
	{
		ENG_DATA_ECT,
		/*name*/
		"eng_data_ect",
		/*txrx id*/
		{0x7e0, 0x7e8, 0x7e0, 0x5e8},
		/*txrx order*/
		{TX, RX, TX, RX},
		/*offset*/
		{0, 0, 0, 1},
		/*size*/
		{0, 0, 0, 1},
		/*tx buffer*/
		{
			{0x04, 0x2C, 0xFE, 0x00, 0x05, 0x00, 0x00, 0x00},
			{0},
			{0x03, 0xAA, 0x03, 0xFE, 0x00, 0x00, 0x00, 0x00},
			{0}
		},
		/*interval*/
		ENGIINE_INTERVAL,
	},
	/*eng_data_iat*/
	{
		ENG_DATA_IAT,
		/*name*/
		"eng_data_iat",
		/*txrx id*/
		{0x7e0, 0x7e8, 0x7e0, 0x5e8},
		/*txrx order*/
		{TX, RX, TX, RX},
		/*offset*/
		{0, 0, 0, 1},
		/*size*/
		{0, 0, 0, 1},
		/*tx buffer*/
		{
			{0x04, 0x2C, 0xFE, 0x00, 0x0F, 0x00, 0x00, 0x00},
			{0},
			{0x03, 0xAA, 0x03, 0xFE, 0x00, 0x00, 0x00, 0x00},
			{0}
		},
		/*interval*/
		ENGIINE_INTERVAL,
	},
	/*eng_data_app*/
	{
		ENG_DATA_APP,
		/*name*/
		"eng_data_app",
		/*txrx id*/
		{0x7e0, 0x7e8, 0x7e0, 0x5e8},
		/*txrx order*/
		{TX, RX, TX, RX},
		/*offset*/
		{0, 0, 0, 1},
		/*size*/
		{0, 0, 0, 1},
		/*tx buffer*/
		{
			{0x04, 0x2C, 0xFE, 0x13, 0x1F, 0x00, 0x00, 0x00},
			{0},
			{0x03, 0xAA, 0x03, 0xFE, 0x00, 0x00, 0x00, 0x00},
			{0}
		},
		/*interval*/
		ENGIINE_INTERVAL,
	},
	/*eng_data_tp*/
	{
		ENG_DATA_TP,
		/*name*/
		"eng_data_tp",
		/*txrx id*/
		{0x7e0, 0x7e8, 0x7e0, 0x5e8},
		/*txrx order*/
		{TX, RX, TX, RX},
		/*offset*/
		{0, 0, 0, 1},
		/*size*/
		{0, 0, 0, 1},
		/*tx buffer*/
		{
			{0x04, 0x2C, 0xFE, 0x12, 0xb1, 0x00, 0x00, 0x00},
			{0},
			{0x03, 0xAA, 0x03, 0xFE, 0x00, 0x00, 0x00, 0x00},
			{0}
		},
		/*interval*/
		ENGIINE_INTERVAL,
	},
	/*eng_data_ert*/
	{
		ENG_DATA_ERT,
		/*name*/
		"eng_data_ert",
		/*txrx id*/
		{0x7e0, 0x7e8, 0x7e0, 0x5e8},
		/*txrx order*/
		{TX, RX, TX, RX},
		/*offset*/
		{0, 0, 0, 1},
		/*size*/
		{0, 0, 0, 1},
		/*tx buffer*/
		{
			{0x04, 0x2C, 0xFE, 0x00, 0x1f, 0x00, 0x00, 0x00},
			{0},
			{0x03, 0xAA, 0x03, 0xFE, 0x00, 0x00, 0x00, 0x00},
			{0}
		},
		/*interval*/
		ENGIINE_INTERVAL,
	},
	/*eng_data_load*/
	{
		ENG_DATA_LOAD,
		/*name*/
		"eng_data_load",
		/*txrx id*/
		{0x7e0, 0x7e8, 0x7e0, 0x5e8},
		/*txrx order*/
		{TX, RX, TX, RX},
		/*offset*/
		{0, 0, 0, 1},
		/*size*/
		{0, 0, 0, 1},
		/*tx buffer*/
		{
			{0x04, 0x2C, 0xFE, 0x00, 0x04, 0x00, 0x00, 0x00},
			{0},
			{0x03, 0xAA, 0x03, 0xFE, 0x00, 0x00, 0x00, 0x00},
			{0}
		},
		/*interval*/
		ENGIINE_INTERVAL,
	},
	/*eng_data_ltft*/
	{
		ENG_DATA_LTFT,
		/*name*/
		"eng_data_ltft",
		/*txrx id*/
		{0x7e0, 0x7e8, 0x7e0, 0x5e8},
		/*txrx order*/
		{TX, RX, TX, RX},
		/*offset*/
		{0, 0, 0, 1},
		/*size*/
		{0, 0, 0, 1},
		/*tx buffer*/
		{
			{0x04, 0x2C, 0xFE, 0x00, 0x07, 0x00, 0x00, 0x00},
			{0},
			{0x03, 0xAA, 0x03, 0xFE, 0x00, 0x00, 0x00, 0x00},
			{0}
		},
		/*interval*/
		ENGIINE_INTERVAL,
	},
	/*eng_data_stft*/
	{
		ENG_DATA_STFT,
		/*name*/
		"eng_data_stft",
		/*txrx id*/
		{0x7e0, 0x7e8, 0x7e0, 0x5e8},
		/*txrx order*/
		{TX, RX, TX, RX},
		/*offset*/
		{0, 0, 0, 1},
		/*size*/
		{0, 0, 0, 1},
		/*tx buffer*/
		{
			{0x04, 0x2C, 0xFE, 0x00, 0x06, 0x00, 0x00, 0x00},
			{0},
			{0x03, 0xAA, 0x03, 0xFE, 0x00, 0x00, 0x00, 0x00},
			{0}
		},
		/*interval*/
		ENGIINE_INTERVAL,
	},
};
#endif
#endif
